xSQL Builder, Version 12
Creating a package using the user interface

The user interface wizard guides you through the steps of configuring and building an executable package:

Step 1: Starts a new configuration or modifies an existing one.

 

Step 2: Collects the information about the master database. This is the database the schema of which will be pushed to the client machine. You must be able to access the master database from the machine where you are running the xSQL Builder.

 

Step 3: Allows you to choose between synchronizing an existing destination database or creating a new one.

 

Step 4: Depending on the option selected in the step 3, it presents you one of the followings:

  1. Synchronize an existing database on the client machine: Synchronizes the client database with the master database. If you choose to backup the target database before the synchronization, you should provide a location for the backup file, the type of the backup (full or differential) and the option to overwrite the backup file.

The path where the database backup will be saved must exist on the client machine. The wizard cannot check the path existence at the time when the package is configured.
  1. Create a new blank database: Creates a new database on the client machine and synchronizes it with the master snapshot. You should specify the name of the database, the path where it should be created and the database recovery model: full, bulk-logged or simple. Note that the database creation path should exist on the client machine.
    You can view the T-Sql script that will be executed to create the database on the client computer by clicking on the button "Show Database Script".

 

  1. Create the database from a database backup file: Creates the destination database from the backup file and synchronizes it with the master database. You should specify a backup file that will be used to create the client database. If you choose to embed the backup file, xSQL Builder compresses the backup file and embeds it into the executable package; otherwise the backup file should exist on client machine when the package is deployed.

The backup file must be a SQL Server backup and can contain one or multiple backup sets. xSQL Builder reads the backup header and displays the backup sets in the backup sets grid. You check one or multiple backup sets in the backup sets grid. If you choose to restore multiple backup sets, all backup sets except for the last one will be restored with NORECOVERY option.

Please note that the backup option is intended to create a new database. If the target database already exists when the package is executed, the backup restore operation will fail.
  1. Create a new database from a T-SQL script: Creates the destination database from a T-SQL script and synchronizes it with the master database. You can use this option to create more a complex database.

 

Step 5: Provides the custom scripts options. Custom scripts are T-SQL scripts and should be executed against the target database before the synchronization (pre-sync scripts) or after the synchronization (post-sync scripts). You can specify a single file or the entire content of a folder. When the folder is selected, all the files with .sql extensions in that folder will be executed in the alphabetical order.

If you choose to embed the T-SQL scripts, xSQL Builder compresses and embeds them into the executable package; otherwise the script files must exist on the client machine where the package is deployed.

 

Step 6: Provides logging options. You can choose to generate three types of logs:

 

The path of the log files must exists on the client machine. By default log files use ANSI encoding, but you can choose a different one.

 

Step 7: Provides notification options. You can choose to send an email notification when the package on the client machine fails, succeeds or completes. The notification is email-based and requires an SMTP mail server along with the necessary credentials. You can specify a designated email address where the notification will be sent to and the senders email address. If the process fails, by default the error log is appended to the email notification.

 

Step 8: Presents some additional settings:

 

 

 


Copyright © 2022 xSQL Software - All rights reserved